<%@ page contentType="text/html; charset=UTF-8" errorPage="/jsp/error.jsp" %>
<%@ taglib uri="/WEB-INF/tlds/struts-html.tld"  prefix="html" %>
<%@ taglib uri="/WEB-INF/tlds/struts-bean.tld"  prefix="bean" %>
<%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/tlds/custom-html.tld" prefix="chtml" %>

<%@ page  import="java.util.ArrayList" %>

<%@ page  import="com.erp.framework.util.CommonUtil" %>
<%@ page import="com.erp.framework.util.mainmenu.MenuGroup" %>
<%@ page import="com.erp.framework.util.mainmenu.MenuObject" %>
<%@ page import="com.erp.app.common.ProjectConstants" %>

<jsp:useBean id="mainMenuForm" scope="session" type="com.erp.app.login.web.MainMenuForm" />

<%
String defaultMenu = "";
ArrayList menuList = mainMenuForm.getMenuList();
int menuListSize = menuList.size();
pageContext.setAttribute("menuList", menuList);

boolean isReadOnly=false;

String backColor = "";

%>

<!-- Displays Menu Image -->
<logic:iterate id="menuItem" name="menuList" indexId="idx" >
<logic:equal name="menuItem" property="menuId" value="<%= mainMenuForm.getSelectedMenu() %>" >
	<%
		MenuGroup menuGroup = (MenuGroup) menuItem;
		if (menuGroup.getMenuImage() != null) {
	%>
			<img src="mainMenu.do?pageEvent=viewMenuGroupImage" border=0/>
	<%	} %>
</logic:equal>
</logic:iterate>
